texthistory: always track selection bounds
authorChristian Hergert <chergert@redhat.com>
Sun, 26 Dec 2021 20:47:45 +0000 (12:47 -0800)
committerChristian Hergert <chergert@redhat.com>
Sun, 26 Dec 2021 20:47:45 +0000 (12:47 -0800)
commite7871fbc433fad592e227ead834346aa3db8a235
tree8ac2826b9d3387a84a4ec9d9753e6c05b9cc7d29
parent99d8dd751e74bd383c7c0cc775cc6cd3ff2080ea
texthistory: always track selection bounds

It's cheap to store the selection position, so always set it even if we
are in a user section. Otherwise, we risk not having the right position
when starting a delete action within a begin_user_action(),
end_user_action() pair.

Related #4575
gtk/gtktexthistory.c